module Base
{
	model Vehicles_TheTigerTank
	{
		mesh = vehicles/tank_body,
		shader = vehicle_norandom_multiuv,
		invertX = FALSE,
		scale = 0.1,
	}
	vehicle TheTigerTank
	{
		mechanicType = 2,
		engineRepairLevel = 5,
		playerDamageProtection = 0.01,
		engineRPMType = van,
		offRoadEfficiency = 1.5,

		model
		{
			file = Vehicles_TheTigerTank,
			scale = 1.8200,
			offset = 0.0000 0.3681 0.0000,
		}

		spawnOffsetY = 0.22553767,

		skin
		{
			texture = tank_texture,
		}

		textureMask = tank_mask,
		textureRust = tank_rust,

		sound
		{
			backSignal = VehicleBackUpBeeper,
			engine = VehicleEngineVan,
			engineStart = VehicleEngineVan,
			engineTurnOff = VehicleEngineVan,
			horn = VehicleHornVan,
			ignitionFail = VehicleIgnitionFailVan,
		}

		extents = 2.07 0.7253 3.78,
		mass = 1000,
		physicsChassisShape = 2.07 0.7253 3.78,
		centerOfMassOffset = 0.0000 0.3901 0.0000,
		extentsOffset = 0.8 0.8,
		engineForce = 5000,
		engineQuality = 100,
		engineLoudness = 100,
		maxSpeed = 30f,
		brakingForce = 70,
		stoppingMovementForce = 5.0f,
		rollInfluence = 0.7f,
		steeringIncrement = 0.03,
		steeringClamp = 0.3,
		suspensionStiffness = 30,
		suspensionCompression = 3.83,
		suspensionDamping = 2.88,
		maxSuspensionTravelCm = 10,
		suspensionRestLength = 0.2,
		wheelFriction = 1.4f,
		frontEndHealth = 150,
		rearEndHealth = 150,
		seats = 6,
		isSmallVehicle = false,

		wheel FrontLeft
		{
			front = true,
			offset = 0.3626 -0.4121 0.8681,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.3626 -0.4121 0.8681,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.3626 -0.4121 -0.5385,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.3626 -0.4121 -0.5385,
			radius = 0.15f,
			width = 0.2f,
		}


		template = PassengerSeat2,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.219 -0.1099 0.66,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.16 -0.5000 0.164,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}

			switchSeat FrontLeft
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
			
			switchSeat FrontRight
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}

			switchSeat Cannoneer
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
			
			switchSeat Gunner
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}

			switchSeat Investigator
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
			
			switchSeat Ammunitionchest
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.219 -0.1099 0.66,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.16 -0.5000 0.164,,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}

			switchSeat FrontLeft
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
			
			switchSeat FrontRight
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}

			switchSeat Cannoneer
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
			
			switchSeat Gunner
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}

			switchSeat Investigator
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
			
			switchSeat Ammunitionchest
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
		}

		passenger Cannoneer
		{
			position inside
			{
				offset = 0.495 -0.1099 -0.13,
				rotate = 0.0000 0.0000 0.0000,
			}

			switchSeat FrontLeft
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
			
			switchSeat FrontRight
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}

			switchSeat Cannoneer
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
			
			switchSeat Gunner
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}

			switchSeat Investigator
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
			
			switchSeat Ammunitionchest
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
		}

		passenger Gunner
		{
			position inside
			{
				offset = -0.495 -0.1099 -0.13,
				rotate = 0.0000 0.0000 0.0000,
			}

			switchSeat FrontLeft
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
			
			switchSeat FrontRight
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}

			switchSeat Cannoneer
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
			
			switchSeat Gunner
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}

			switchSeat Investigator
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
			
			switchSeat Ammunitionchest
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
		}

		passenger Investigator
		{
			position inside
			{
				offset = -0.38 -0.1099 -1.077,
				rotate = 0.0000 0.0000 0.0000,
			}

			switchSeat FrontLeft
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
			
			switchSeat FrontRight
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}

			switchSeat Cannoneer
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
			
			switchSeat Gunner
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}

			switchSeat Investigator
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
			
			switchSeat Ammunitionchest
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
		}

		passenger Ammunitionchest
		{
			position inside
			{
				offset = 0.38 -0.1099 -1.077,
				rotate = 0.0000 0.0000 0.0000,
			}

			switchSeat FrontLeft
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
			
			switchSeat FrontRight
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}

			switchSeat Cannoneer
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
			
			switchSeat Gunner
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}

			switchSeat Investigator
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
			
			switchSeat Ammunitionchest
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound = ,
			}
		}

		area Engine
		{
			xywh = 0.0000 2.13 0.8901 0.4725,
		}

		area TruckBed
		{
			xywh = 0.0000 -2.13 0.8901 0.4725,
		}

		area SeatFrontLeft
		{
			xywh = 1.286 0.4890 0.4725 1.23,
		}

		area SeatFrontRight
		{
			xywh = -1.286 0.4890 0.4725 1.23,
		}

		area GasTank
		{
			xywh = 1.286 -1.055 0.4725 1.176,
		}

		area TireFrontLeft
		{
			xywh = 0.6758 0.8681 0.4725 0.4725,
		}

		area TireFrontRight
		{
			xywh = -0.6758 0.8681 0.4725 0.4725,
		}

		area TireRearLeft
		{
			xywh = 0.6758 -0.5385 0.4725 0.4725,
		}

		area TireRearRight
		{
			xywh = -0.6758 -0.5385 0.4725 0.4725,
		}

		template = Trunk/part/TruckBed,
		part TruckBed
        {
            itemType = Base.BigTrunk,

            container
            {
                capacity = 500,
            }
        }
		template = TheTigerSeat/part/SeatFrontLeft,
		template = TheTigerSeat/part/SeatFrontRight,
		template = TheTigerSeat/part/SeatCannoneer,
		template = TheTigerSeat/part/SeatGunner,
		template = TheTigerSeat/part/SeatInvestigator,
		template = TheTigerSeat/part/SeatAmmunitionchest,
		

		part Seat*
		{
			table install
			{
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
			}
		}

		template = GloveBox,
		template = TheTigerGasTank,

		part GasTank
		{
			install
			{
				skills = Mechanics:7,
				recipes = Intermediate Mechanics,
			}

			uninstall
			{
				skills = Mechanics:7,
				recipes = Intermediate Mechanics,
			}
		}

		template = Battery,
		template = Engine,
		template = Muffler,

		part Muffler
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = EngineDoor,

		part EngineDoor
		{
			anim Open
			{
				sound = VehicleHoodOpenVan,
			}

			anim Close
			{
				sound = VehicleHoodCloseVan,
			}

			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		part Heater
		{
			category = engine,

			lua
			{
				update = Vehicles.Update.Heater,
			}
		}

		part PassengerCompartment
		{
			category = nodisplay,

			lua
			{
				update = Vehicles.Update.PassengerCompartment,
			}
		}

		template = Windshield/part/Windshield,
		template = Windshield/part/WindshieldRear,

		part Windshield*
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		part WindshieldRear
		{
			table install
			{
				requireInstalled = DoorRear,
			}
		}

		template = Window/part/WindowFrontLeft,
		template = Window/part/WindowFrontRight,

		part Window*
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Door/part/DoorFrontLeft,
		template = Door/part/DoorFrontRight,
		template = Door/part/DoorRear,

		part Door*
		{
			anim Open
			{
				sound = VehicleDoorOpenVan,
			}
			
			anim Close
			{
				sound = VehicleDoorCloseVan,
			}

			anim Lock
			{
				sound = LockVehicleDoorVan,
			}
			
			anim Unlock
			{
				sound = UnlockVehicleDoorVan,
			}

			anim IsLocked
			{
				sound = VehicleDoorIsLockedVan,
			}

			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		part DoorRear
		{
			anim Open
			{
				sound = VehicleTrunkOpenVan,
			}

			anim Close
			{
				sound = VehicleTrunkCloseVan,
			}

			table uninstall
			{
				requireUninstalled = WindshieldRear,
			}

			hasLightsRear = true,
		}

		template = Tire,

		part Tire*
		{
			model InflatedTirePlusWheel
			{
				file = 0,
			}
		}

		template = Brake,

		part Brake*
		{
			table install
			{
				skills = Mechanics:6,
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				skills = Mechanics:6,
				recipes = Intermediate Mechanics,
			}
		}

		template = Suspension,

		part Suspension*
		{
			table install
			{
				skills = Mechanics:6,
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				skills = Mechanics:6,
				recipes = Intermediate Mechanics,
			}
		}

		template = Radio,
		template = Headlight,

		attachment trailer
		{
			offset = 0.0000 -0.2747 -2.13,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1,
		}

		attachment trailerfront
		{
			offset = 0.0000 -0.2747 2.13,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1,
		}

		template = tankhead,
		template = tankfoot,
	}
}
